package com.yurenmatou.bean;

import java.io.Serializable;
import java.util.List;

public class APIData implements Serializable {

    private int err_code;
    private String err_msg;
    private String model_name;

    private int total;
    private int page;
    private int perpage;
    private List<ApiU> list;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPerpage() {
        return perpage;
    }

    public void setPerpage(int perpage) {
        this.perpage = perpage;
    }

    public String getErr_msg() {
        if ("".equals(err_msg)) {
            return null;
        }
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public String getModel_name() {
        return model_name;
    }

    public void setModel_name(String model_name) {
        this.model_name = model_name;
    }

    public List<ApiU> getList() {
        return list;
    }

    public void setList(List<ApiU> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "APIData{" +
                "err_code=" + err_code +
                ", total=" + total +
                ", page=" + page +
                ", perpage=" + perpage +
                ", err_msg='" + err_msg + '\'' +
                ", model_name='" + model_name + '\'' +
                ", list=" + list +
                '}';
    }
}
